import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const routes: Array<RouteRecordRaw> = [
  {
    path: '/',
    name: 'home',
    component: HomeView
  },
  {
    path: '/about',
    name: 'about',
    component: () => import( '../views/AboutView.vue')
  },
  {
    path: '/login',
    name: 'login',
    component: () => import( '../views/Login.vue')
  },
  {
    path: '/create',
    name: 'create',
    component: () => import( '../views/create.vue')
  }, {
    path: '/goods',
    name: 'goods',
    component: () => import( '../views/goods.vue')
  }, {
    path: '/title',
    name: 'title',
    component: () => import( '../views/title.vue')
  }, {
    path: '/zlgoods',
    name: 'zlgoods',
    component: () => import( '../views/zlgoods.vue')
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
